<?php

$src = img_data('path/img_without_extension', 'image/png'); // ...
